import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import( '../views/AboutView.vue')
  },
  {
    path: '/dy',
    name: 'dy',
    component: () => import( '../views/DinView.vue')
  },
  {
    path: '/xuan',
    name: 'xuan',
    component: () => import( '../views/XuanView.vue')
  },
  {
    path: '/wo',
    name: 'wo',
    component: () => import( '../views/WoView.vue')
  },
  {
    path: '/din',
    name: 'din',
    component: () => import( '../views/DinDan.vue')
  },
  {
    path: '/xing',
    name: 'xing',
    component: () => import( '../components/xiang/XingView.vue')
  },
  {
    path: '/chang',
    name: 'chang',
    component: () => import( '../views/ChenCi.vue')
  }
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
